fix(msi): force termination of stuck processes
authorJyrki Gadinger <nilsding@nilsding.org>
Thu, 8 May 2025 12:23:40 +0000 (14:23 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 30 May 2025 07:40:29 +0000 (09:40 +0200)
Stopping the Windows Explorer process does not always work.  Per default
the MSI Restart Manager will display a warning message after a timeout,
and not attempt to restart Explorer afterwards -- resulting in a black
screen if no other window is open.

Setting the property `MSIRMSHUTDOWN` to `1` will force the termination
of the process when the timeout is reached, which finally allows the
Explorer to be restarted.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
admin/win/msi/Nextcloud.wxs

index 3a9ddcdbee255b5dba637ea84948bdf72dd85274..56acc7c6dca1c4c877d67936e0ba33ecd29a5e89 100644 (file)
@@ -46,6 +46,7 @@
     -->
     <MajorUpgrade Schedule="afterInstallExecute" AllowDowngrades="yes" />
     <Property Id="REINSTALLMODE" Value="dmus" />
+    <Property Id="MSIRMSHUTDOWN" Value="1" />
 
     <Media Id="1" Cabinet="$(var.AppShortName).cab" EmbedCab="yes" />